
import yaml
from autoTest_ecshop.utils.getPath import get_path

def read_yaml(filename):
    # 读取yaml文件的内容
    with open(get_path(filename),'r',encoding='utf-8') as f:
        return yaml.safe_load(f)

# 调试代码
if __name__ == "__main__":
    res = read_yaml("login.yaml")["loginInfors"]
    print(type(res))
    print(res)


